{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# python notebook for Make Your Own Neural Network\n",
    "# code for a 3-layer neural network, and code for learning the MNIST dataset\n",
    "# (c) Tariq Rashid, 2016\n",
    "# license is GPLv2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# helper to load data from PNG image files\n",
    "import scipy.misc\n",
    "# glob helps select multiple files using patterns\n",
    "import glob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import numpy\n",
    "# library for plotting arrays\n",
    "import matplotlib.pyplot\n",
    "# ensure the plots are inside this notebook, not an external window\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# our own image test data set\n",
    "our_own_dataset = []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "loading ...  my_own_images/2828_my_own_2.png\n",
      "0.01\n",
      "1.0\n",
      "[ 2.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.07211765\n",
      "  0.52247059  0.71658826  0.61952943  0.29729411  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.27400002\n",
      "  0.79423529  0.79423529  0.84470588  1.          1.          0.59623533\n",
      "  0.01776471  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.23905884  0.70494121  0.32835296  0.01        0.01        0.18858825\n",
      "  0.92235297  1.          0.35552943  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.34388235  0.28952941  0.01        0.01        0.01        0.01\n",
      "  0.50305885  1.          0.61176473  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.37105882  1.          0.61564708  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.43705884  1.          0.42152941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.68941176  0.86800003  0.09152941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.21964706  0.88741177  0.37494117  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01388235  0.68941176  0.55741179  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.46811765  0.63505882  0.02941176  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.36329412  0.68164706  0.09541176  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.27011764  0.69329411  0.12258823  0.01        0.01        0.01        0.01\n",
      "  0.15752943  0.01776471  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.24294119  0.81364709  0.32447058  0.01        0.01388235  0.02941176\n",
      "  0.14588237  0.64670593  0.4875294   0.01388235  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.04882353  0.46423531  1.          1.          1.          1.          1.\n",
      "  1.          1.          1.          0.1847059   0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.08376471  0.46811765  0.5069412   0.44482353  0.51082355  0.53023529\n",
      "  0.53023529  0.53023529  0.5069412   0.29341176  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01      ]\n",
      "loading ...  my_own_images/2828_my_own_3.png\n",
      "0.01\n",
      "1.0\n",
      "[ 3.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.03329412  0.12258823\n",
      "  0.01        0.44870588  0.61176473  0.56129414  0.23129413  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.27400002  0.60400003  0.80588233\n",
      "  0.46035293  0.01        0.32058823  0.48364705  0.56905884  0.72435296\n",
      "  0.64282358  0.07600001  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.26235294\n",
      "  0.5147059   0.23517647  0.02552941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.81752944  0.5147059   0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.21964706  0.08764706  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.62341177  0.49529412  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.7515294   0.38658825  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.58847064  0.736       0.02164706  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.08376471  0.41764706\n",
      "  0.61952943  0.24682353  0.24294119  0.04882353  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.54576474\n",
      "  0.96117646  1.          0.57682353  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.07600001  0.05270588  0.22352943  0.81364709  0.59235299  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.05270588  0.37882352  0.32835296\n",
      "  0.08376471  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.82141179  0.472       0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.35164705  0.55352944  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.05270588  0.23517647  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.34        0.76705885  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.18082353  0.08764706\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.02941176  0.87964708  0.5418824   0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.41764706\n",
      "  0.87964708  0.02552941  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.13423531  0.42152941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.53800005  0.79811764  0.11870588  0.01        0.01        0.08764706\n",
      "  0.31282353  0.82917649  0.27788237  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.53023529  0.26235294  0.16917649  0.70494121\n",
      "  0.78258824  0.7282353   0.37105882  0.02164706  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.13035294\n",
      "  0.31282353  0.14588237  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01      ]\n",
      "loading ...  my_own_images/2828_my_own_4.png\n",
      "0.01\n",
      "0.930118\n",
      "[ 4.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.23905884  0.15364707  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.12258823  0.81752944  0.1847059   0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.49529412  0.57682353  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.06823529  0.72435296  0.16529413  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.44482353  0.69329411  0.01        0.01        0.01        0.01\n",
      "  0.04882353  0.06435294  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.7437647   0.30894119  0.01        0.01        0.01        0.01\n",
      "  0.11482353  0.42152941  0.05270588  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.40211764  0.69717646  0.01        0.01        0.01        0.01        0.01\n",
      "  0.1924706   0.73988235  0.06823529  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.09929412  0.83694118  0.25847059  0.01        0.01        0.01        0.01\n",
      "  0.01        0.30117649  0.7631765   0.01776471  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.51082355  0.68552941  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.44094118  0.69329411  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.10317647  0.78647059  0.15364707  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.61564708  0.58847064  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.60788238  0.5069412   0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.61564708  0.50305885  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.1847059   0.71658826  0.01        0.01        0.01        0.01        0.01\n",
      "  0.02941176  0.01        0.01388235  0.64670593  0.472       0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.06435294  0.84858823  0.93011767  0.56129414  0.63894117  0.65447062\n",
      "  0.64670593  0.67000002  0.68164706  0.67000002  0.65835297  0.91070586\n",
      "  0.7631765   0.51858824  0.52247059  0.43317646  0.3477647   0.24682353\n",
      "  0.10705882  0.04105882  0.02552941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.14976472  0.67388237  0.59623533\n",
      "  0.68941176  0.70494121  0.64282358  0.66223532  0.66611767  0.62729412\n",
      "  0.61952943  0.69329411  0.91458821  0.87576473  0.70494121  0.74764705\n",
      "  0.80976474  0.7631765   0.82141179  0.7437647   0.3477647   0.24294119\n",
      "  0.04882353  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.02941176  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.02164706  0.01        0.01        0.08764706  0.80588233  0.40211764\n",
      "  0.01        0.01        0.01        0.01        0.03717647  0.16141178\n",
      "  0.09541176  0.06435294  0.02941176  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.08764706\n",
      "  0.83305883  0.3827059   0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.04105882  0.81364709  0.43317646  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.85247058  0.4875294   0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01388235  0.77482355  0.54576474  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.32835296  0.56905884  0.01388235  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.02164706  0.22352943  0.02552941  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01      ]\n",
      "loading ...  my_own_images/2828_my_own_5.png\n",
      "0.01\n",
      "0.868\n",
      "[ 5.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.02164706  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.05658824  0.59623533  0.59623533  0.62729412\n",
      "  0.62341177  0.60400003  0.61564708  0.61952943  0.62341177  0.61952943\n",
      "  0.60011768  0.59623533  0.07988235  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.06823529  0.81364709\n",
      "  0.34        0.22741178  0.18858825  0.13811766  0.17305884  0.18858825\n",
      "  0.1924706   0.28176472  0.31670588  0.30894119  0.04882353  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.54964709  0.35941178  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.48364705  0.53023529  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.44870588  0.53800005  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.47588235  0.49529412  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.52635294  0.58847064  0.44094118  0.63505882  0.63505882  0.61564708\n",
      "  0.61952943  0.65058827  0.15364707  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.5069412   0.77870589  0.52247059  0.42541176  0.28564706\n",
      "  0.16917649  0.1847059   0.50305885  0.82917649  0.51082355  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.07211765  0.02552941  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.14976472  0.77482355  0.736       0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.69329411\n",
      "  0.60011768  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.736       0.18858825  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.52247059  0.44094118  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.76705885  0.24682353  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.35552943  0.49141178  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.10317647\n",
      "  0.82917649  0.51858824  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.18082353  0.86800003  0.44482353\n",
      "  0.01        0.01        0.01        0.09541176  0.22741178  0.44870588\n",
      "  0.58847064  0.7282353   0.5147059   0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.13423531  0.76705885  0.67000002  0.61176473  0.68552941  0.67388237\n",
      "  0.62341177  0.52247059  0.39047059  0.13035294  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.33223531  0.35552943  0.25847059\n",
      "  0.09541176  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01      ]\n",
      "loading ...  my_own_images/2828_my_own_6.png\n",
      "0.01\n",
      "1.0\n",
      "[ 6.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.15364707  0.06047059  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.19635296  0.59235299  0.22741178  0.06435294  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        1.          0.45647058  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.60788238  0.59623533  0.18082353  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.47588235  0.98835295  0.08764706  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.56129414  1.          0.06435294  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.09929412  0.63117647  0.35164705  0.05270588  0.01388235  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.7437647   0.65058827  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.75929415  0.57294118  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.05270588\n",
      "  0.13035294  0.7437647   0.67388237  0.79811764  0.98835295  0.60788238\n",
      "  0.38658825  0.04882353  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.02941176\n",
      "  0.18858825  0.2507059   0.22352943  1.          0.88352942  0.65058827\n",
      "  0.58847064  0.42152941  0.86023527  0.65447062  0.02552941  0.13811766\n",
      "  0.04882353  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.04105882  0.1847059   0.06435294  0.39047059  0.96894115\n",
      "  0.04494118  0.01        0.01        0.01        0.43317646  0.95341176\n",
      "  0.1264706   0.15364707  0.04882353  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.61176473  0.60400003  0.01        0.01        0.01        0.01        0.01\n",
      "  0.57682353  0.71270591  0.04105882  0.04882353  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.32447058  0.78258824  0.11094118  0.01        0.01        0.01        0.01\n",
      "  0.05270588  0.1847059   0.89129412  0.42541176  0.09541176  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.58847064  0.96894115  0.01        0.01        0.01        0.01        0.01\n",
      "  0.02164706  0.01        0.84082353  0.41376472  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.49141178  0.4875294   0.02552941  0.01        0.01        0.01        0.01\n",
      "  0.01776471  0.11482353  0.46423531  0.83305883  0.11870588  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.05270588  0.87964708  0.50305885  0.01        0.01        0.01        0.01\n",
      "  0.01        0.07211765  0.18858825  0.01        0.5069412   0.93011767\n",
      "  0.10317647  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.03717647  0.58070588  0.77482355  0.02164706  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.09152941\n",
      "  0.7437647   0.08376471  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01388235  0.05270588  0.67388237  0.23129413\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.70105886  0.12258823  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.07600001  0.84082353\n",
      "  0.53023529  0.38658825  0.3827059   0.32835296  0.31282353  0.28952941\n",
      "  0.30894119  0.86411768  1.          0.25847059  0.05658824  0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.02941176  0.48364705  0.64670593  0.70105886  0.77870589  0.7515294\n",
      "  0.80199999  0.7709412   0.72435296  0.7282353   0.35552943  0.22352943\n",
      "  0.06047059  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.09929412  0.13811766  0.04105882  0.01        0.01\n",
      "  0.01        0.08376471  0.01388235  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.03329412  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01      ]\n",
      "loading ...  my_own_images/2828_my_own_noisy_6.png\n",
      "0.145882\n",
      "0.774824\n",
      "[ 6.          0.28952941  0.27400002  0.28176472  0.28176472  0.28564706\n",
      "  0.28952941  0.30505884  0.25847059  0.27788237  0.30117649  0.28564706\n",
      "  0.28176472  0.27788237  0.27011764  0.27011764  0.26235294  0.27400002\n",
      "  0.30894119  0.28176472  0.27788237  0.29729411  0.27011764  0.29341176\n",
      "  0.28952941  0.28952941  0.28952941  0.28176472  0.30117649  0.30505884\n",
      "  0.27788237  0.25847059  0.29341176  0.29341176  0.30505884  0.30894119\n",
      "  0.25847059  0.27011764  0.31282353  0.28176472  0.28952941  0.30505884\n",
      "  0.28952941  0.26623529  0.33223531  0.29729411  0.26235294  0.28564706\n",
      "  0.27011764  0.28952941  0.30894119  0.28176472  0.27788237  0.27788237\n",
      "  0.27400002  0.26623529  0.28176472  0.30505884  0.27011764  0.26623529\n",
      "  0.28564706  0.29729411  0.28564706  0.27011764  0.30894119  0.28952941\n",
      "  0.30117649  0.29341176  0.28176472  0.27788237  0.38658825  0.55352944\n",
      "  0.37882352  0.28176472  0.27011764  0.27788237  0.27788237  0.30117649\n",
      "  0.30117649  0.28564706  0.25847059  0.27788237  0.28564706  0.27011764\n",
      "  0.27400002  0.27011764  0.28176472  0.27788237  0.28564706  0.29341176\n",
      "  0.29729411  0.29341176  0.29341176  0.28952941  0.26235294  0.28176472\n",
      "  0.30505884  0.2507059   0.25458825  0.7631765   0.51858824  0.23517647\n",
      "  0.25847059  0.27788237  0.29729411  0.30117649  0.29341176  0.27400002\n",
      "  0.30117649  0.28952941  0.28564706  0.29341176  0.27788237  0.27011764\n",
      "  0.29341176  0.27400002  0.27011764  0.29729411  0.30117649  0.29341176\n",
      "  0.28564706  0.29341176  0.25847059  0.28176472  0.25847059  0.20411766\n",
      "  0.56129414  0.56517649  0.28564706  0.25847059  0.27011764  0.30894119\n",
      "  0.29729411  0.28176472  0.28952941  0.28564706  0.29729411  0.28952941\n",
      "  0.27400002  0.27400002  0.27400002  0.28564706  0.28952941  0.27400002\n",
      "  0.27788237  0.27788237  0.28564706  0.27011764  0.29729411  0.29729411\n",
      "  0.28952941  0.28176472  0.20023531  0.49917647  0.7709412   0.29341176\n",
      "  0.21964706  0.28952941  0.27788237  0.29729411  0.27788237  0.27011764\n",
      "  0.27788237  0.29729411  0.28564706  0.28564706  0.28564706  0.27788237\n",
      "  0.27788237  0.30117649  0.28952941  0.28564706  0.27400002  0.28952941\n",
      "  0.29341176  0.28952941  0.27400002  0.29341176  0.30505884  0.18858825\n",
      "  0.54576474  0.7554118   0.29729411  0.23517647  0.30117649  0.30117649\n",
      "  0.28176472  0.28952941  0.28564706  0.29341176  0.28176472  0.29729411\n",
      "  0.29341176  0.26235294  0.31282353  0.29341176  0.29341176  0.27788237\n",
      "  0.28176472  0.30505884  0.27400002  0.28564706  0.29341176  0.27788237\n",
      "  0.27788237  0.28952941  0.27400002  0.29341176  0.56905884  0.42152941\n",
      "  0.30117649  0.30505884  0.28952941  0.27788237  0.30117649  0.29341176\n",
      "  0.28176472  0.27400002  0.28952941  0.27788237  0.28176472  0.28952941\n",
      "  0.28176472  0.27788237  0.28176472  0.27011764  0.28176472  0.28176472\n",
      "  0.29729411  0.28564706  0.28176472  0.27011764  0.28176472  0.27011764\n",
      "  0.21188237  0.62729412  0.55741179  0.21964706  0.26623529  0.27400002\n",
      "  0.28564706  0.28564706  0.29341176  0.28176472  0.30505884  0.30117649\n",
      "  0.26623529  0.27788237  0.29341176  0.30505884  0.28176472  0.28176472\n",
      "  0.28564706  0.28952941  0.28176472  0.27400002  0.29729411  0.28564706\n",
      "  0.28176472  0.29729411  0.28952941  0.27400002  0.18858825  0.60400003\n",
      "  0.53800005  0.15364707  0.25847059  0.23517647  0.208       0.27788237\n",
      "  0.28952941  0.28564706  0.28564706  0.30894119  0.30117649  0.30894119\n",
      "  0.28176472  0.27788237  0.28564706  0.28176472  0.30505884  0.29341176\n",
      "  0.30505884  0.29341176  0.27011764  0.25458825  0.27400002  0.30117649\n",
      "  0.28952941  0.31282353  0.30505884  0.59623533  0.58070588  0.63505882\n",
      "  0.7437647   0.55741179  0.45258823  0.29729411  0.27011764  0.27011764\n",
      "  0.26623529  0.30117649  0.32058823  0.30117649  0.27788237  0.29341176\n",
      "  0.28952941  0.27788237  0.30894119  0.29341176  0.29341176  0.28564706\n",
      "  0.30117649  0.27400002  0.27011764  0.30117649  0.37494117  0.40599999\n",
      "  0.38658825  0.7515294   0.71658826  0.53023529  0.56905884  0.42929411\n",
      "  0.68164706  0.57294118  0.28176472  0.34388235  0.29341176  0.27788237\n",
      "  0.27400002  0.27788237  0.27011764  0.29341176  0.29341176  0.27011764\n",
      "  0.27400002  0.28176472  0.29341176  0.29729411  0.28564706  0.27011764\n",
      "  0.28176472  0.28176472  0.35552943  0.28564706  0.44870588  0.72435296\n",
      "  0.29341176  0.14976472  0.21188237  0.14588237  0.46035293  0.72047061\n",
      "  0.34        0.34388235  0.30117649  0.27400002  0.28176472  0.29729411\n",
      "  0.28952941  0.28176472  0.28564706  0.28176472  0.28176472  0.29729411\n",
      "  0.28952941  0.27011764  0.26235294  0.29729411  0.27400002  0.28176472\n",
      "  0.25847059  0.20023531  0.56905884  0.56129414  0.17694119  0.29341176\n",
      "  0.27011764  0.28952941  0.21576472  0.5418824   0.60400003  0.26235294\n",
      "  0.28176472  0.28952941  0.30117649  0.29729411  0.28952941  0.30117649\n",
      "  0.28564706  0.28952941  0.31670588  0.28952941  0.27400002  0.27788237\n",
      "  0.28952941  0.27400002  0.29341176  0.29729411  0.25458825  0.43705884\n",
      "  0.62729412  0.30117649  0.27400002  0.29729411  0.28176472  0.27011764\n",
      "  0.30117649  0.36717647  0.68552941  0.46035293  0.32447058  0.28176472\n",
      "  0.29341176  0.27400002  0.28564706  0.28952941  0.28176472  0.27400002\n",
      "  0.29341176  0.28176472  0.29729411  0.29341176  0.30505884  0.28564706\n",
      "  0.29341176  0.28176472  0.21964706  0.55741179  0.71270591  0.23905884\n",
      "  0.27011764  0.30117649  0.28952941  0.28952941  0.26623529  0.21964706\n",
      "  0.64670593  0.46811765  0.21964706  0.28564706  0.30117649  0.30505884\n",
      "  0.29729411  0.28564706  0.29341176  0.28176472  0.28952941  0.29341176\n",
      "  0.30117649  0.30117649  0.28176472  0.28176472  0.28952941  0.27400002\n",
      "  0.29341176  0.48364705  0.50305885  0.25458825  0.26623529  0.28176472\n",
      "  0.28952941  0.26235294  0.26235294  0.27788237  0.51082355  0.65835297\n",
      "  0.30117649  0.24294119  0.28176472  0.30505884  0.28176472  0.27011764\n",
      "  0.30505884  0.28952941  0.28952941  0.29341176  0.27011764  0.26235294\n",
      "  0.25847059  0.27400002  0.29341176  0.27400002  0.29729411  0.67388237\n",
      "  0.51082355  0.18858825  0.30117649  0.28564706  0.28176472  0.26623529\n",
      "  0.29341176  0.36329412  0.25847059  0.51082355  0.73988235  0.29729411\n",
      "  0.22352943  0.30117649  0.30894119  0.27788237  0.29341176  0.27788237\n",
      "  0.27400002  0.29341176  0.28176472  0.28952941  0.28564706  0.27400002\n",
      "  0.28176472  0.27011764  0.28952941  0.54576474  0.62729412  0.27400002\n",
      "  0.28176472  0.28176472  0.27011764  0.27788237  0.28952941  0.29729411\n",
      "  0.20023531  0.32058823  0.60788238  0.31282353  0.27400002  0.28176472\n",
      "  0.28564706  0.30117649  0.27788237  0.28952941  0.28564706  0.28564706\n",
      "  0.28952941  0.29341176  0.29729411  0.29341176  0.29341176  0.27788237\n",
      "  0.28564706  0.28952941  0.57294118  0.39047059  0.15752943  0.22741178\n",
      "  0.22352943  0.208       0.23129413  0.21188237  0.25847059  0.58070588\n",
      "  0.33223531  0.24682353  0.29729411  0.27011764  0.26235294  0.28564706\n",
      "  0.27011764  0.28564706  0.29341176  0.28176472  0.27788237  0.29341176\n",
      "  0.27400002  0.27011764  0.28952941  0.30505884  0.25847059  0.29341176\n",
      "  0.65835297  0.52247059  0.42152941  0.43705884  0.41376472  0.42152941\n",
      "  0.41376472  0.37105882  0.70494121  0.77482355  0.40599999  0.30505884\n",
      "  0.26623529  0.28176472  0.29341176  0.27788237  0.28176472  0.27400002\n",
      "  0.29729411  0.28564706  0.28564706  0.29341176  0.28564706  0.29341176\n",
      "  0.29341176  0.29341176  0.27400002  0.27011764  0.50305885  0.60400003\n",
      "  0.60011768  0.62729412  0.62341177  0.62729412  0.62341177  0.61952943\n",
      "  0.62341177  0.45647058  0.35941178  0.32447058  0.28564706  0.27400002\n",
      "  0.27400002  0.28952941  0.29341176  0.27788237  0.28952941  0.28952941\n",
      "  0.27400002  0.26623529  0.28564706  0.30117649  0.30505884  0.30505884\n",
      "  0.29341176  0.32835296  0.33611766  0.27400002  0.24682353  0.24682353\n",
      "  0.23905884  0.30117649  0.29341176  0.23905884  0.20411766  0.23905884\n",
      "  0.23129413  0.29729411  0.30117649  0.27011764  0.28176472  0.30117649\n",
      "  0.28952941  0.28176472  0.29341176  0.28952941  0.30117649  0.29341176\n",
      "  0.29729411  0.28564706  0.27011764  0.28564706  0.29341176  0.30894119\n",
      "  0.28952941  0.26623529  0.27011764  0.29341176  0.26623529  0.26623529\n",
      "  0.28564706  0.26235294  0.27400002  0.27400002  0.27788237  0.27788237\n",
      "  0.28176472  0.29341176  0.29341176  0.29729411  0.28952941  0.27788237\n",
      "  0.28176472  0.30505884  0.30117649  0.28176472  0.30117649  0.28176472\n",
      "  0.26623529  0.26235294  0.28952941  0.29341176  0.28176472  0.30894119\n",
      "  0.30505884  0.27788237  0.28564706  0.29729411  0.26623529  0.28564706\n",
      "  0.30505884  0.28952941  0.27011764  0.28564706  0.30505884  0.28564706\n",
      "  0.29341176  0.28176472  0.27788237  0.27011764  0.27788237  0.28952941\n",
      "  0.28952941  0.28176472  0.29729411  0.29341176  0.28176472  0.28564706\n",
      "  0.28564706  0.27400002  0.27788237  0.28176472  0.28564706  0.29341176\n",
      "  0.30117649  0.28564706  0.25458825  0.28952941  0.30505884  0.28952941\n",
      "  0.28952941  0.27400002  0.28176472  0.27400002  0.29341176  0.29729411\n",
      "  0.28952941  0.26623529  0.30505884  0.28564706  0.28952941  0.28564706\n",
      "  0.27400002  0.28564706  0.27400002  0.27788237  0.27788237  0.29729411\n",
      "  0.29729411  0.28564706  0.27788237  0.26623529  0.30117649  0.29729411\n",
      "  0.29341176  0.29341176  0.28952941  0.28564706  0.28564706  0.25847059\n",
      "  0.27011764  0.27400002  0.26235294  0.28952941  0.29729411  0.28564706\n",
      "  0.29729411  0.27788237  0.27011764  0.29729411  0.29729411  0.26623529\n",
      "  0.30117649  0.28176472  0.27011764  0.28564706  0.29341176  0.30894119\n",
      "  0.29341176  0.27400002  0.27788237  0.29341176  0.30117649  0.28564706\n",
      "  0.28564706  0.29341176  0.28176472  0.26623529  0.26235294  0.29341176\n",
      "  0.26623529  0.29729411  0.30117649  0.29729411  0.29729411]\n"
     ]
    }
   ],
   "source": [
    "for image_file_name in glob.glob('my_own_images/2828_my_own_*.png'):\n",
    "    # use the filename to set the correct label\n",
    "    label = int(image_file_name[-5:-4])\n",
    "    # load image data from png files into an array\n",
    "    print (\"loading ... \", image_file_name)\n",
    "    img_array = scipy.misc.imread(image_file_name, flatten=True)\n",
    "    # reshape from 28x28 to list of 784 values, invert values\n",
    "    img_data  = 255.0 - img_array.reshape(784)\n",
    "    # then scale data to range from 0.01 to 1.0\n",
    "    img_data = (img_data / 255.0 * 0.99) + 0.01\n",
    "    print(numpy.min(img_data))\n",
    "    print(numpy.max(img_data))\n",
    "    # append label and image data  to test data set\n",
    "    record = numpy.append(label,img_data)\n",
    "    print(record)\n",
    "    our_own_dataset.append(record)\n",
    "    pass"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.image.AxesImage at 0x109a985c0>"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAP4AAAD8CAYAAABXXhlaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADe9JREFUeJzt3V2MHfV5x/HfY4xB9orYWNm15MUbV7guKkaWq6Ct6MVE\nhgSVgFEuKKESkEYoEnZr6psQQNrjqhdJL5BcCd8QxzJVIEkjuSZFLcRyRwiiFIvavCQGIqUmwcYH\nKC7yCoMw+/Rix9v1suc/Z8/r7D7fj7Ti7DxzPM8O+9t5OzN/c3cBiGVRvxsA0HsEHwiI4AMBEXwg\nIIIPBETwgYDaCr6Z3Whmr5nZG2b27U41BaC7rNXr+Ga2SNIbkjZLOinpsKTb3f21GfPxQQGgT9zd\nZpvezhb/Wkm/cfc33f0TST+StKXBwqe+xsbGLvi+al/0t3D7q3Jv3egvpZ3gr5b0+2nfv1VMA1Bx\nnNwDAlrcxntPSFoz7fvhYtpn1Gq1qdfLly9vY5Hdl2VZv1tIor/WVbk3qf3+8jxXnudNzdvOyb2L\nJL2uyZN7b0t6QdLX3f3YjPm81WUAaJ2ZyRuc3Gt5i+/un5r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6Nte/l8ZBeIh5N7QEAEHwiI4AMBEXwgIIIPBETwgYAIPhAQwQcC+j/tFAizOnit\nnAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x109a1b0f0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "matplotlib.pyplot.imshow(our_own_dataset[3][1:].reshape(28,28), cmap='Greys', interpolation='None')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[ 2.          0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.07211765\n",
      "  0.52247059  0.71658826  0.61952943  0.29729411  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.27400002\n",
      "  0.79423529  0.79423529  0.84470588  1.          1.          0.59623533\n",
      "  0.01776471  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.23905884  0.70494121  0.32835296  0.01        0.01        0.18858825\n",
      "  0.92235297  1.          0.35552943  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.34388235  0.28952941  0.01        0.01        0.01        0.01\n",
      "  0.50305885  1.          0.61176473  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.37105882  1.          0.61564708  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.43705884  1.          0.42152941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.68941176  0.86800003  0.09152941  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.21964706  0.88741177  0.37494117  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01388235  0.68941176  0.55741179  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.46811765  0.63505882  0.02941176  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.36329412  0.68164706  0.09541176  0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.27011764  0.69329411  0.12258823  0.01        0.01        0.01        0.01\n",
      "  0.15752943  0.01776471  0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.24294119  0.81364709  0.32447058  0.01        0.01388235  0.02941176\n",
      "  0.14588237  0.64670593  0.4875294   0.01388235  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.04882353  0.46423531  1.          1.          1.          1.          1.\n",
      "  1.          1.          1.          0.1847059   0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.08376471  0.46811765  0.5069412   0.44482353  0.51082355  0.53023529\n",
      "  0.53023529  0.53023529  0.5069412   0.29341176  0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01\n",
      "  0.01        0.01        0.01        0.01        0.01        0.01        0.01      ]\n"
     ]
    }
   ],
   "source": [
    "print(our_own_dataset[0])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
